package com.business.dashboard;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Business Dashboard Admin Backend Application
 * 
 * @author Claude
 * @version 1.0
 * @since 2025-07-06
 */
@SpringBootApplication
@MapperScan("com.business.dashboard.dao")
@EnableCaching
@EnableTransactionManagement
public class BusinessDashboardApplication {

    public static void main(String[] args) {
        SpringApplication.run(BusinessDashboardApplication.class, args);
        System.out.println("\n==========================================================");
        System.out.println("🚀 Business Dashboard Admin Backend Started Successfully!");
        System.out.println("==========================================================");
        System.out.println("📊 管理后台登录: http://localhost:8232/admin/login");
        System.out.println("🔑 默认账户: admin / admin123");
        System.out.println("🏥 健康检查: http://localhost:8232/admin-api/api/health");
        System.out.println("📡 API接口: http://localhost:8232/admin-api/api/");
        System.out.println("==========================================================\n");
    }

}